﻿    using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkflowCore.Interface;
using WorkflowCore.Models;

namespace Workflow2211A.Consol.Steps
{

    public class AddNumberStep : StepBody
    {
        
        public int Value1 { get; set; }
        public int Value2 { get; set; }
        public int Output {  get; set; }
        public override ExecutionResult Run(IStepExecutionContext context)
        {
            Output = Value1 + Value2;
            return ExecutionResult.Next();
        }
    }
}
